package com.fht.spring_boot_study.model.account.service;

import com.fht.spring_boot_study.model.account.entity.User;
import com.fht.spring_boot_study.model.common.entity.ResultEntity;
import com.fht.spring_boot_study.model.common.entity.SearchBean;

import org.springframework.data.domain.Page;

public interface AccountService {
    ResultEntity<User> insertUser(User user);

    ResultEntity<User> updatetUser(User user);

    ResultEntity<User> deleteUser(int id);

    Page<User> getUsersBySearchBean(SearchBean searchBean);
}
